<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<base href="<%=basePath%>">
    <LINK rel="stylesheet" media="screen" type="text/css" title="Style" href="css/style.css">
	<title>АЧиВ "Хогвартс"</title>
</head>
<body>
	<div id="background_image">
        <div id="content_login">
            <div id="main_book">
            	<div id="title_main_page">
                	<div id="title_main_image"></div>
                    <h3>
                        Академия Чародейства
                        <br />
                        и Волшебства
                        <br />
                        "Хогвартс"
                    </h3>
				</div>
                <c:if test="${error != \"\"}">
                    <div id="error_main">
                     	<h2><span>О</span>шибка:</h2>
                      	<h4>
                       		${error}
                       	</h4>
                    </div>
                </c:if>
				<div id="user_login">
					<form name="login" action="login" method="post">
						<div class="field">
							<h2><span>Л</span>огин:</h2>
	                        <input type="text" name="login" id="login_form" class="form_text" value="" />
	                    </div>
	                    <div class="field">
	                        <h2><span>П</span>ароль:</h2>
	                        <input type="password" name="password" id=""password"_form" class="form_text" value="" />
	                    </div>
	                    <div class="buttons">
                            <span class="submit"><input class="form_button" type="submit" name="btnSave" value="Войти" /></span>
                        </div>
					</form>
				</div>
			</div>
            <div id="footer_main_page">
	        	<h1>
	            	© 2010 Hogwarts. All rights reserved
	                <br />
	                Powered by SMC
	            </h1>
	        </div>
        </div>
    </div>
</body>
</html>